package graphics 
{
	import flash.display.Graphics;
	import flash.display.Sprite;
	import flash.geom.Point;
	/**
	 * ...
	 * @author Gareth Williams
	 */
	public class Circle extends Sprite implements IGraphic 
	{
		public function Circle(colour:uint, _radius:Number) 
		{
			draw(colour, _radius);
		}
		private function draw(colour:uint, _radius:Number):void
		{
			var gfx:Graphics = this.graphics;
			gfx.clear();
			gfx.beginFill(colour, 1);
				gfx.drawEllipse(-_radius, -_radius, _radius*2, _radius*2);
			gfx.endFill();
		}
		
		/* INTERFACE graphics.IGraphic */
		
		public function move(position:Point):void 
		{
			this.x = position.x;
			this.y = position.y;
		}
		public function rotate(rotation:Number):void 
		{
			this.rotation = 180 / Math.PI * rotation;//bloody annoying rad to deg
		}
		public function doHitAnimation():void 
		{
			//stub...
		}
		public function doDeathAnimation():void 
		{
			//stub...
		}
		public function doHealthAnimation(percentHealthRemaining:int):void 
		{
			//stub...
		}
		public function updateAnimation():void
		{
			//stub...
		}
	}
}